<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: ASUS
  Date: 2020/10/3
  Time: 12:59
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>愿望大厅</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/list.css">
    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"
          integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
</head>

<body id="bg">

<nav class="navbar navbar-default">
    <div class="container-fluid">
        <div class="navbar-header">
            <a class="navbar-brand" href="#">
                <img alt="Wish">
            </a>
        </div>
        <p class="navbar-text">  欢迎${user.userName}来到愿望大厅</p>
        <button type="button" class="btn btn-success navbar-btn"
                onclick="window.location.href='${pageContext.request.contextPath}/pages/main.jsp'">
            我要许愿</button>
        <button type="button" class="btn btn-info navbar-btn navbar-right"
                onclick="window.location.href='${pageContext.request.contextPath}/content/list'">
           返回 </button>
    </div>
</nav>
<%--内容部分--%>
<c:forEach items="${contentList}" var="conent">
    <div id="box">
        用户${conent.userId}的愿望：<br>
        ${conent.content}
    </div>
</c:forEach>

</body>
</html>
